//
//  MGFile.h
//  iFlyQDMG
//
//  Created by ifly on 3/9/18.
//  Copyright © 2018年 Meiyang. All rights reserved.
//  https://blog.csdn.net/wgl_happy/article/details/76522583
//https://blog.csdn.net/feng2qing/article/details/54974200

#import <Foundation/Foundation.h>

@interface MGFile : NSObject


+ (instancetype)shared;

/// 设定下载PDF缓存路径
- (NSString *)jcSavePath:(NSString *)path;

/// 获取所有的储存pdf 文件
- (NSArray *)jcGetAllFloder;

/// 根据路径删除储存文件
- (void)resetCacheForPath:(NSString *)paths;

/// 将下载的pdf 文件进行备份
- (BOOL)jcCachesOfBackup;

/// 使用此备份数据备份
- (BOOL)jcRestoreCaches;

/// 获取备份信息
- (NSDictionary *)jcGetBackup;

/// 获取缓存的路径下所有的大小
- (double)jcGetCachesWithPath:(NSString *)path;

/// 清除缓存
- (void)jcClearCache;

@end
